package com.coolingme.general;

/**
 * 具体处理者，对请求进行处理，如果不感兴趣则进行转发
 *
 * @author wangyue
 * @date 2020-09-23 21:01
 */
public class ConcreteHandlerC extends AbstractHandler {

    @Override
    public void handlerRequest(String request) {
        if ("requestC".equals(request)) {
            System.out.println("do requestC...");
            return;
        }
        if (this.nextHandler != null) {
            this.nextHandler.handlerRequest(request);
        }
    }
}
